package com.lhy.framework.beans.factory;

import java.util.List;
import java.util.Map;

/**
 * @Title:
 * @Description: 功能概述:
 * @Author: lihaiyang
 * @version: 1.0 .
 * @Date: 2022-09-09 14:35
 * @Copyright: Copyright(c)2022 RedaFlight.comAll Rights Reserved
 */
public interface ListableBeanFactory extends BeanFactory {


    /**
     * 按照类型返回 Bean 实例
     * @param type
     * @param <T>
     * @return
     */
    <T> Map<String, T> getBeansOfType(Class<T> type);

    /**
     * 返回注册表中所有的bean名称
     * @return
     */
    List<String> getBeanDefinitionNames();
}
